package ClimateControlProcessor.ClimateObjects;

public class MonoValve {
	private int portNo;
	private int currentExpanded;
	
	public MonoValve()
	{
		portNo = 0;
		currentExpanded = 0;
	}
	
	// Get Port No.
	public int getPortNo(){return portNo;}
	public void setPortNo(int _portNo){ portNo = _portNo;}
	
	// Get Current Speed
	public int getExpandedValue(){return currentExpanded;}
	public void setExpandedValue(int _iExpanded){ currentExpanded = _iExpanded;}
	
	public int getMonovalveValue(){
		if(currentExpanded < 0){
			return 0;
		}
		
		int freSpeed = currentExpanded*(Constant.SEEKBAR_MAX)/Constant.VALUE100;
		return freSpeed;
	}
}
